package com.shuwen.gcdj.entity;

import java.io.Serializable;
import java.time.LocalDateTime;
import com.baomidou.mybatisplus.annotation.*;
import com.baomidou.mybatisplus.extension.activerecord.Model;
import lombok.Data;
import lombok.NoArgsConstructor;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;
/**
 * 测点指标(Mvalues)表实体类
 *
 * @author zwq
 * @since 2023-04-20 10:37:31
 */
@SuppressWarnings("Mvalues")
@EqualsAndHashCode(callSuper = true)
@Data
@NoArgsConstructor
@Accessors(chain = true)
@TableName("t_mvalues")
public class Mvalues  extends Model<Mvalues> implements Serializable{
    @TableId(type = IdType.ASSIGN_UUID)
    private String id;

    //单位
    private String unit;
    //采集频率
    private Integer rate;
    //近0规则
    private Double zero;
    //时序库
    private String taos;
    //库名
    private String db;
    //表名
    @TableField(value = "`table`")
    private String table;
    //列名,指标编码
    @TableField(value = "`column`")
    private String column;
    //测点
    private String parentId;
    
    private Integer generation;
    //排序
    private Integer sort;
    //状态（启用，禁用）
    private Integer active;
    //节点名称
    @TableField(value = "`name`")
    private String name;
    //备注
    private String note;
    //超高限
    private Double hhigh;
    //高限
    private Double high;
    //超低限
    private Double llow;
    //低限
    private Double low;
    //创建者ID
    private String createId;
    /**
     * 创建时间
     */
    @TableField(fill = FieldFill.INSERT)
    private LocalDateTime createTime;
    //修改者ID
    private String updateId;
    /**
     * 更新时间
     */
    @TableField(fill = FieldFill.INSERT_UPDATE)
    private LocalDateTime updateTime;
    //是否删除：0-否，1-是
    private String isDelete;
}

